import request from "./index"

// 获取博客列表
export const getBlogList = (data: GetBlogAPIReq):Promise<GetBlogAPIRes> => {
    return request({
        url: "/blog/page",
        method: "get",
        data
    })
}

// 删除博客
export const deleteBlog = (id: string):Promise<GetBlogAPIRes> => {
    return request({
        url: "/blog/" + id,
        method: "delete",
    })
}
